package com.st.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TestMapper {
    @Insert("update  lock_test set num = #{num}")
    int updateNum(int num);

    @Select("select num from lock_test limit 1")
    int getNum();
}
